home *** CD-ROM | disk | FTP | other *** search
- /********************
-
- SetText routines
-
- Copyright 1987 Greg Coleman
- Black Sun Technology
- These sources may be freely distributed provided this notice remains intact.
-
- ********************/
-
- #include <Controls.h>
- #include <Dialogs.h>
- #include <Quickdraw.h>
- #include <Types.h>
- #include "Tonto.h"
-
- void
- GetText(dialog,num,string)
- DialogPtr dialog;
- int num;
- StringPtr string;
- {
- Handle line;
- short type;
- Rect box;
-
- GetDItem(dialog, num, &type, &line, &box);
- GetIText(line, string);
- }
-
-
- void
- SetText(dialog,num,string)
- DialogPtr dialog;
- int num;
- StringPtr string;
- {
- Handle line;
- Rect box;
- short type;
-
- GetDItem(dialog, num, &type, &line, &box);
- SetIText(line, string);
- }